export const routes = [
    { path: '/', redirect: '/index' },
    {
        name: "index",
        path: "/index",
        meta: {
            keep: true,
            title: '首页',
            isNav: true,
            navIcon: 'icon-shouye'
        },
        component: () => import('@/pages/index/index')
    },
    {
        name: "fun",
        path: "/fun",
        meta: {
            keep: true,
            title: '社区',
            isNav: true,
            navIcon: 'icon-shequ'
        },
        component: () => import('@/pages/fun/index')
    },
    {
        name: "collect",
        path: "/collect",
        meta: {
            keep: true,
            title: '收藏',
            isNav: true,
            navIcon: 'icon-shoucang-'
        },
        component: () => import('@/pages/collect/index')
    },
    {
        name: "me",
        path: "/me",
        meta: {
            keep: true,
            title: '我的',
            isNav: true,
            navIcon: 'icon-xiazai'
        },
        component: () => import('@/pages/me/index')
    },
    {
        name: "article",
        path: "/article/:id",
        meta: {
            title: '文章详情页',
            isNav: false
        },
        component: () => import('@/pages/article/index')
    },
    {
        name: "search",
        path: "/search",
        meta: {
            title: '搜索',
            isNav: false,
        },
        component: () => import('@/pages/search/index')
    },
    {
        name: "login",
        path: "/login",
        meta: {
            title: '用户登录',
            isNav: false,
        },
        component: () => import('@/pages/login/index')
    },
    {
        name: "follow",
        path: "/follow",
        meta: {
            title: '我的关注',
            isNav: false,
        },
        component: () => import('@/pages/follow/index')
    },
    {
        name: "setting",
        path: "/setting",
        meta: {
            title: '设置',
            isNav: false,
        },
        component: () => import('@/pages/setting/index')
    },
    {
        name: "account",
        path: "/account",
        meta: {
            title: '账户',
            isNav: false,
        },
        component: () => import('@/pages/account/index')
    },
    {
        name: "about",
        path: "/about",
        meta: {
            title: '关于kyeteo',
            isNav: false,
        },
        component: () => import('@/pages/about/index')
    },
    {
        name: "author",
        path: "/author/:id",
        meta: {
            title: '主页',
            isNav: false,
        },
        component: () => import('@/pages/author/index')
    }
]